package cn.com.dcsgo.settlement.calculator;

import cn.com.dcsgo.settlement.OrderAmountContext;
import lombok.Getter;
import lombok.Setter;

/**
 * 责任链实现计算订单的结算金额
 *
 * @author Dcsgo
 * @since 2025/11/17 18:20
 */
@Getter
@Setter
public abstract class AbstractOrderAmountCalculator {
    /**
     * 下一个计算者
     */
    private AbstractOrderAmountCalculator nextCalculator;

    /**
     * 计算结算金额
     *
     * @param orderAmountContext 订单金额上下文
     */
    public abstract void calculate(OrderAmountContext orderAmountContext);
}
